package com.demo.stream.controller;

import com.demo.stream.service.IMessageProvider;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Author by admin, Email xx@xx.com, Date on 2020/6/5.
 * PS: Not easy to write code, please indicate.
 */
@RestController
public class SendMessageController {
    @Resource
    private IMessageProvider iMessageProvider;
    @GetMapping("/send")
    public String sendMessage(){
        return iMessageProvider.send();
    }
}
